package homework;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User：Lenovo
 * Date:2024-11-13
 * Time:22:09
 */
//斐波那契数列
public class Test11_13_1 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int ret=fib(scanner.nextInt());
        System.out.println(ret);
    }
    public static int fib(int i){
        if(i<=2){
            return 1;
        }
        else{
            int ret=fib(i-1)+fib(i-2);
            return ret;
        }
    }
}
